package cn.zust.edu.cn;

import java.util.ArrayList;
import java.util.List;

public class ShapeManager {
    private List<IShape> shapes = new ArrayList<IShape>();

    public List getShapes() {
        return shapes;
    }
    public void addShape(IShape shape){
    shapes.add(shape);
    }
    public void delShape(IShape shape){
    shapes.remove(shape);
    }
    public void drawShapes(){
        for (IShape x : shapes){
            x.draw();
        }
    }

}
